/**
 * @author Fayçal INAJJARANE
 */
package com.appspot.finajjarane.framework.models;

import java.util.List;

import com.appspot.finajjarane.framework.generic.Utils;


public class ArticleModel{

	private Long id;

	private String title;

	private String titleSlugified;

	private String body;

	private String lang;

	private DateDetailsModel publishedDate;

	private List<String> tags;

	private String imageSmall;

	private String imageCarousel;

	public ArticleModel(){}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
		this.setTitleSlugified(title);
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public DateDetailsModel getPublishedDate() {
		return publishedDate;
	}

	public void setPublishedDate(DateDetailsModel publishedDate) {
		this.publishedDate = publishedDate;
	}

	public List<String> getTags() {
		return tags;
	}

	public void setTags(List<String> tags) {
		this.tags = tags;
	}

	public void setLang(String lang) {
		this.lang = lang;
	}

	public String getLang() {
		return lang;
	}

	public void setImageSmall(String image) {
		this.imageSmall = image;
	}

	public String getImageSmall() {
		return imageSmall;
	}

	public void setImageCarousel(String imageCarousel) {
		this.imageCarousel = imageCarousel;
	}

	public String getImageCarousel() {
		return imageCarousel;
	}

	public void setTitleSlugified(String titleSlugified) {
		this.titleSlugified = Utils.slugify(titleSlugified);
	}

	public String getTitleSlugified() {
		return titleSlugified;
	}



}
